---
title: clsCaseNotesManager.DeleteNote
summary: Delete a case note only when category and creator restrictions allow it.
status: draft
owner: SAIF Documentation Generator
last_reviewed: 2026-08-21
library: SAIF.Application.Claim.Legal
reference_type: embedded
operation_id: delete-case-note
trigger: A case-note delete is requested.
---

# clsCaseNotesManager.DeleteNote

Delete a case note only when category and creator restrictions allow it.

| Field | Value |
| --- | --- |
| **Operation ID** | delete-case-note |
| **Trigger** | A case-note delete is requested. |
| **Inputs** | Current manager state, current claim/case context, and workflow-specific parameters or collections. |
| **Outputs** | Updated collections, messages, or side effects specific to the operation. |
| **Primary components** | `clsCaseNotesManager.DeleteNote` |
| **Entry point** | `SAIF.Application.Claim.Legal\LegalNet\clsCaseNotesManager.vb` |

## Steps

1. Locate the targeted note in the current note collection.
2. If the note category is not `DOCCO`, require the privilege needed to delete non-DOCCO notes.
3. If the note was created by `SYSTEM`, block the delete unconditionally.
4. Delete the note only when both checks pass.

## Process flow

The following diagram visualizes this operation's control flow.

```mermaid
flowchart TD
  Start([Trigger]) --> S1[Load current state]
  S1 --> S2[Apply workflow rules]
  S2 --> D{"Validation or security<br>issue?"}
  D -->|Yes| EndErr(["Return message or block<br>action"])
  D -->|No| EndOk(["Return updated workflow<br>state"])
```

## Failure and edge-case behavior
- System-created notes can never be deleted.
- Unauthorized deletes leave the note collection unchanged.

## Related documentation
- [Index](../index.md)
- [Operations and processes](../operations-processes.md)
- [Business rules](../business-rules.md)
- [Security and authorization](../security-authorization.md)
- [Database tables](../database-tables.md)
- [SQL catalog](../sql/index.md)
- [Procedures](../procedures/index.md)
- [API reference](../api/index.md)

## Sources
- SAIF.Application.Claim.Legal\LegalNet\clsCaseNotesManager.vb
